package com.baidu;

public class Pig {
    String name;
    private int age;
    public double weight;

    
    public Pig(String name, int age, double weight) {
        this.name = name;
        this.age = age;
        this.weight = weight;
    }

    public void eat() {
        System.out.println(name + "正在吃饭");
    }
}
